<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Request
 *
 * @author Andriy
 */
class Core_Request
{
    protected $_params = array();

    protected $_module = 'General';

    protected $_controller = 'Index';

    protected $_action = 'Index';


    public function initRequeset()
    {
        $this->_params = array_merge($this->_params, $_REQUEST);
    }

    public function getParam($name)
    {
        if( !isset($this->_params[$name]) )
        {
            return false;
        }

        return $this->_params[$name];
    }

    public function setParam($name, $value)
    {
        $this->_params[$name] = $value;
        return $this;
    }

    public function getModule()
    {
        return $this->_module;
    }

    public function setModule( $module )
    {
        $this->_module = $module;
        return $this;
    }

    public function getController()
    {
        return $this->_controller;
    }

    public function setController( $controller )
    {
        $this->_controller = $controller;
        return $this;
    }

    public function getAction()
    {
        return $this->_action;
    }

    public function setAction( $action )
    {
        $this->_action = $action;
        return $this;
    }


}
?>
